package com.onepower.core.modules.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.onepower.core.domain.AuthUser;
import com.onepower.core.domain.request.MatchAdminForm;
import com.onepower.core.domain.request.SysUserForm;
import com.onepower.core.domain.response.MatchAdminInfo;
import com.onepower.core.domain.response.SysUserInfo;
import com.onepower.core.modules.repository.entity.SysUser;

import java.util.List;


/**
 * <p>
 * 系统用户表 服务类
 * </p>
 *
 * @author kin
 * @since 2018-08-01
 */
public interface ISysUserService extends IService<SysUser> {

    AuthUser login(String account, String password);

    void saveUser(SysUserForm userInfo);

    void deleteUser(List<Integer> ids);

    SysUserInfo getUser(Integer userId);

    Page<SysUserInfo> getUserList(Page<SysUserInfo> page);

    void restPassword(Integer userId, String password);

    Page<MatchAdminInfo> getMatchAdminList(Page<MatchAdminInfo> page, Integer matchId);

    void saveMatchAdmin(MatchAdminForm matchAdminForm);
}
